﻿using MingYuanYun.Primitives;

namespace ControlCenter.Model
{

    /// <summary>
    /// 程序包状态枚举（1=未安装，2=已安装，3=停用，4=运行中）
    /// </summary>
    public enum PackageStatus
    {
        /// <summary>
        /// 未安装
        /// </summary>
        [Description("未安装")]
        Uninstall = 1,
        /// <summary>
        /// 已安装/空闲
        /// </summary>
        [Description("已安装/空闲")]
        Normal = 2,
        /// <summary>
        /// 停用
        /// </summary>
        [Description("停用")]
        Stop = 3,
        /// <summary>
        /// 运行中
        /// </summary>
        [Description("运行中")]
        Running = 4
    }

    /// <summary>
    /// 机器人状态枚举（1=离线，2=空闲，3=执行中，4=停用）
    /// </summary>
    public enum RobotStatus
    {
        /// <summary>
        /// 离线
        /// </summary>
        [Description("离线")]
        OffLine = 1,
        /// <summary>
        /// 空闲
        /// </summary>
        [Description("空闲")]
        Idle = 2,
        /// <summary>
        /// 停用
        /// </summary>
        [Description("执行中")]
        Execution = 3,
        /// <summary>
        /// 停用
        /// </summary>
        [Description("停用")]
        Disabled = 4
    }

    /// <summary>
    /// 执行状态枚举（0=待执行，1=执行中，2=成功，3=失败）
    /// </summary>
    public enum ExecutionStatus
    {
        /// <summary>
        /// 待执行
        /// </summary>
        [Description("待执行")]
        Wait = 0,
        /// <summary>
        /// 执行中
        /// </summary>
        [Description("执行中")]
        Processing = 1,
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 2,
        /// <summary>
        /// 失败
        /// </summary>
        [Description("失败")]
        Fail = 3
    }

    /// <summary>
    /// 任务日志类型枚举 (1=任务，2=跟踪)
    /// </summary>
    public enum ExecutionQueueType
    {
        /// <summary>
        /// 任务
        /// </summary>
        [Description("任务")]
        Task = 1,
        /// <summary>
        /// 跟踪
        /// </summary>
        [Description("跟踪")]
        Trace = 2
    }

    /// <summary>
    /// 包选项类型枚举
    /// </summary>
    public enum PackageOptionType
    {
        /// <summary>
        /// ERP参数
        /// </summary>
        Erp = 1,
        /// <summary>
        /// 文档服务
        /// </summary>
        Doc = 2
    }

    /// <summary>
    /// 心跳类型枚举
    /// </summary>
    public enum HeartTypeEnum
    {
        /// <summary>
        /// 机器人
        /// </summary>
        Robot = 1,
        /// <summary>
        /// 任务包
        /// </summary>
        PackageTask = 2
    }
}
